package asteroids.model.programs.binaryexpression;

import asteroids.model.programs.Expression;
import asteroids.model.programs.Program;
import exception.IllegalOperandException;


public class Or extends BinaryExpression<Boolean> {


	public Or(Expression<?> left, Expression<?> right)
			throws IllegalOperandException {
		super(left, right);
	}


	@Override
	public Boolean getValue(Program program) {
		return ((Boolean)(getLeftOperand().getValue(program))) || ((Boolean)(getRightOperand().getValue(program)));
	}


}
